package com.bocloud.model;

import java.sql.Date;

public class User {
	private int id;
	private String jobNum;//工号
	private String userName;//用户名
	private String password;//密码
	private String userTel;//电话
	private String companyId;//公司编号
	private String departmentId;//部门编号
	private String postId;//岗位编号
	private String email;//电子邮件
	private String superior;//上级编号
	private String roleId;//角色编号
	private Date birthdate;//出生日期
	private Date hiredate;//入职日期
	private String sex;//性别
	private String state;//状态
	private String level;//级别
	private String salary;//薪水
	private Role role;
	private Post post;
	private Company company;
	private Department department;

	public User() {
	}

	public User(int id, String jobNum, String userName, String password, String userTel, String companyId, String departmentId, String postId, String email, String superior, String roleId, Date birthdate, Date hiredate, String sex, String state, String level, String salary, Role role, Post post, Company company, Department department) {
		this.id = id;
		this.jobNum = jobNum;
		this.userName = userName;
		this.password = password;
		this.userTel = userTel;
		this.companyId = companyId;
		this.departmentId = departmentId;
		this.postId = postId;
		this.email = email;
		this.superior = superior;
		this.roleId = roleId;
		this.birthdate = birthdate;
		this.hiredate = hiredate;
		this.sex = sex;
		this.state = state;
		this.level = level;
		this.salary = salary;
		this.role = role;
		this.post = post;
		this.company = company;
		this.department = department;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getJobNum() {
		return jobNum;
	}

	public void setJobNum(String jobNum) {
		this.jobNum = jobNum;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getUserTel() {
		return userTel;
	}

	public void setUserTel(String userTel) {
		this.userTel = userTel;
	}

	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	public String getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(String departmentId) {
		this.departmentId = departmentId;
	}

	public String getPostId() {
		return postId;
	}

	public void setPostId(String postId) {
		this.postId = postId;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getSuperior() {
		return superior;
	}

	public void setSuperior(String superior) {
		this.superior = superior;
	}

	public String getRoleId() {
		return roleId;
	}

	public void setRoleId(String roleId) {
		this.roleId = roleId;
	}

	public Date getBirthdate() {
		return birthdate;
	}

	public void setBirthdate(Date birthdate) {
		this.birthdate = birthdate;
	}

	public Date getHiredate() {
		return hiredate;
	}

	public void setHiredate(Date hiredate) {
		this.hiredate = hiredate;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getLevel() {
		return level;
	}

	public void setLevel(String level) {
		this.level = level;
	}

	public String getSalary() {
		return salary;
	}

	public void setSalary(String salary) {
		this.salary = salary;
	}

	public Role getRole() {
		return role;
	}

	public void setRole(Role role) {
		this.role = role;
	}

	public Post getPost() {
		return post;
	}

	public void setPost(Post post) {
		this.post = post;
	}

	public Company getCompany() {
		return company;
	}

	public void setCompany(Company company) {
		this.company = company;
	}

	public Department getDepartment() {
		return department;
	}

	public void setDepartment(Department department) {
		this.department = department;
	}

	@Override
	public String toString() {
		return "User{" +
				"id=" + id +
				", jobNum='" + jobNum + '\'' +
				", userName='" + userName + '\'' +
				", password='" + password + '\'' +
				", userTel='" + userTel + '\'' +
				", companyId='" + companyId + '\'' +
				", departmentId='" + departmentId + '\'' +
				", postId='" + postId + '\'' +
				", email='" + email + '\'' +
				", superior='" + superior + '\'' +
				", roleId='" + roleId + '\'' +
				", birthdate=" + birthdate +
				", hiredate=" + hiredate +
				", sex='" + sex + '\'' +
				", state='" + state + '\'' +
				", level='" + level + '\'' +
				", salary='" + salary + '\'' +
				", role=" + role +
				", post=" + post +
				", company=" + company +
				", department=" + department +
				'}';
	}
}
